package de.gameduell.framework.geom {

	/**
	 * Helper class for geometry-related functions.
	 */
	public class Geometry {

		/**
		 * Converts gradial to radial angles (pi -> 180 degrees)
		 */
		public static function arcToAngle(arc:Number):Number {
			return (180 * arc) / Math.PI;
		}

		/**
		 * Converts radial to gradial angles
		 */
		public static function angleToArc(angle:Number):Number {
			return (angle * Math.PI) / 180;
		}
	}
}
